﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Project5.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class init : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "testing",
                columns: table => new
                {
                    Id = table.Column<string>(type: "char(36)", nullable: false),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    Timestamp = table.Column<long>(type: "bigint", nullable: false),
                    CreateTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_testing", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "testing1",
                columns: table => new
                {
                    Id = table.Column<string>(type: "char(36)", nullable: false),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    Timestamp = table.Column<long>(type: "bigint", nullable: false),
                    CreateTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_testing1", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "testing");

            migrationBuilder.DropTable(
                name: "testing1");
        }
    }
}
